<template>
  <div class="zwView">
    <div class="tItem" v-for="(item, index) in tlist" :key="index" :style="{transition: `all ${index}s ease`}">
      <div class="name">{{ item.name }}</div>
      <div class="value" v-if="item.value">:{{ item.value }}</div>
    </div>
  </div>
</template>

<script setup>
import { ref, reactive } from "vue";
import modelData from "@/assets/model.json";
let tlist = reactive([]);
console.log(modelData);

tlist = modelData[0].map((item)=>{
    return {
        name:item,
        value:''
    };
});
</script>

<style lang="less" scoped>
.zwView {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  .tItem {
    border: 1px #222 solid;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    .name {
      width: max-content;
      font-size: 20px;
    }
    .value {
      width: max-content;
      font-size: 20px;
    }
  }
}
</style>
